package ${sourceBasePackage}.api.${entityPackage?uncap_first};

import ${sourceBasePackage}.common.api.JsonResult;
import ${sourceBasePackage}.common.entity.${className};
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("zoo-${entityPackage?uncap_first}")
public interface ${className}ServiceClient {
	// 分页查询、搜索
	@GetMapping("${className?uncap_first}")
	JsonResult<${className}> list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "rows", required = false) Integer rows) throws Exception;
	// 根据id查询
	@GetMapping("${className?uncap_first}/{${pkField}}")
	JsonResult<${className}> info(@PathVariable(value="${pkField}") ${pkType} ${pkField}) throws Exception;
	// 添加
	@PostMapping("${className?uncap_first}")
	JsonResult<${className}> add(@RequestBody ${className} ${className?uncap_first}) throws Exception;
	// 修改
	@PostMapping("${className?uncap_first}/{${pkField}}")
	JsonResult<${className}> update(@PathVariable(value="${pkField}") ${pkType} ${pkField}, @RequestBody ${className} ${className?uncap_first}) throws Exception;
	// 删除
	@DeleteMapping("${className?uncap_first}/{${pkField}}")
	JsonResult<Boolean> delete(@PathVariable(value="${pkField}") ${pkType} ${pkField}) throws Exception;
}
